﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
namespace FamilyTree_v1._0.User_Control
{
    public partial class UserMemberCard3 : UserControl
    {
        public delegate void eventAdd_Edit(object sender, EventArgs e);
        public eventAdd_Edit function_eventAdd_Edit;
        public UserMemberCard3()
        {
            InitializeComponent();
        }
        private void labelAddChild_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                function_eventAdd_Edit(sender, e);
            }
        }
        public void addChild(String child)
        {
            listBoxChild.Items.Add(child);
        }
        public void setNameAdd(string nameadd)
        {
            labelNameAdd.Text = nameadd;
        }
        public void setName(string name)
        {
            labelName.Text = name;
        }
        public void setListBoxChild(ArrayList listChild)
        {
            listBoxChild.Items.Clear();
            foreach (MenuItem item in listChild)
            {
                listBoxChild.Items.Add(item);
            }
        }
    }
}
